package gestionTransportObjetsGenerated;

/**
 * Interface definition : GestionColis
 * 
 * @author OpenORB Compiler
 */
public class GestionColisPOATie extends GestionColisPOA
{

    //
    // Private reference to implementation object
    //
    private GestionColisOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public GestionColisPOATie(GestionColisOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public GestionColisPOATie(GestionColisOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public GestionColisOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(GestionColisOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation connaitreEtat
     */
    public gestionTransportObjetsGenerated.EtatColis[] connaitreEtat(String numAdh)
    {
        return _tie.connaitreEtat( numAdh);
    }

    /**
     * Operation newColis
     */
    public void newColis(gestionTransportObjetsGenerated.Enveloppe env)
    {
        _tie.newColis( env);
    }

    /**
     * Operation obtenirColis
     */
    public gestionTransportObjetsGenerated.Enveloppe obtenirColis(String numEnv)
        throws gestionTransportObjetsGenerated.COLIS_INCONNU
    {
        return _tie.obtenirColis( numEnv);
    }

    /**
     * Operation informerColisDestinataire
     */
    public void informerColisDestinataire(String numEnv, String libZone)
    {
        _tie.informerColisDestinataire( numEnv,  libZone);
    }

    /**
     * Operation obtenirColisDest
     */
    public String[] obtenirColisDest(String numAdh)
    {
        return _tie.obtenirColisDest( numAdh);
    }

}
